package com.example.bilibili_miaosha.config;
import org.springframework.amqp.core.Queue;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

/**
 * @ClassName RabbitMQConfig
 * @Description TODO
 * @Author 川
 * @Date 2022/5/13 15:16
 * @Version 1.0
 **/
@Configuration
public class RabbitMQConfig {
    @Bean
    public Queue queue() {
        return new Queue("queue",true);
    }
}
